package cn.shop.front.config;

import cn.shop.utils.YamlPropertySourceFactory;
import lombok.Data;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * @author jzw
 * @since 2021-12-13 11:18
 */
@Configuration
@Data
@ToString
@PropertySource(value = {"classpath:config/pay-config.yml"}, factory = YamlPropertySourceFactory.class)
@ConfigurationProperties(prefix = "fk.pay")
public class FkPayConfig {

	/**
	 * 请求地址
	 */
	private String appKey;

	/**
	 * 请求地址
	 */
	private String url;

	private String appUrl;

	/**
	 * 商户地址
	 */
	private String merchantId;

	/**
	 * 充值回调地址
	 */
	private String notifyUrl;

	/**
	 * 购买回调地址
	 */
	private String orderUrl;

	/**
	 * 批量购买回调地址
	 */
	private String batchOrderUrl;
}
